#pragma once
#include "ComboExtend.h"
#include "utility.h"

class CAddPagerDlg :
	public WindowImplBase
{
public:
	CAddPagerDlg();
	virtual ~CAddPagerDlg();
	LPCTSTR GetWindowClassName() const { return _T("CAddPagerDlg"); }
	virtual CDuiString GetSkinFile() { return _T("AddPager.xml"); }
	virtual CDuiString GetSkinFolder() { return  _T("skin"); }
	virtual void InitWindow();
	virtual CControlUI* CreateControl(LPCTSTR pstrClass);
	virtual LRESULT OnNcActivate(UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& bHandled);
	Pager_PTR	GetPager();


	DUI_DECLARE_MESSAGE_MAP()
	void OnOKBtnClick(TNotifyUI& msg);
	//void OnCboAreaChange(TNotifyUI& msg);
private:
	CComboExUI*	m_pCboArea;
	CEditUI*	m_pEditPagerName;
	CEditUI*	m_pEditPagerCode;
	CLabelUI*		m_pLabTitle=nullptr;
	Pager_PTR	m_ptrPager;
};

